using GroupSix.Domain.Entity;

namespace GroupSix.Domain.Entity.App;

/// <summary>
/// 系统设置变更日志实体
/// </summary>
public class GsSystemSettingLog : EntityBase
{
    /// <summary>
    /// 设置键
    /// </summary>
    public string SettingKey { get; set; } = string.Empty;

    /// <summary>
    /// 旧值
    /// </summary>
    public string OldValue { get; set; } = string.Empty;

    /// <summary>
    /// 新值
    /// </summary>
    public string NewValue { get; set; } = string.Empty;

    /// <summary>
    /// 变更原因
    /// </summary>
    public string ChangeReason { get; set; } = string.Empty;

    /// <summary>
    /// 操作类型 (create, update, delete)
    /// </summary>
    public string OperationType { get; set; } = "update";

    /// <summary>
    /// 操作人ID
    /// </summary>
    public Guid OperatorId { get; set; }

    /// <summary>
    /// 操作人用户名
    /// </summary>
    public string OperatorName { get; set; } = string.Empty;

    /// <summary>
    /// IP地址
    /// </summary>
    public string IpAddress { get; set; } = string.Empty;

    /// <summary>
    /// 用户代理
    /// </summary>
    public string UserAgent { get; set; } = string.Empty;
} 